var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;

var _def_UI_MoveYun = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.code = 1;
    t.speed = 1;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.update = function () {
    if (1 == this.code) {
      this.node.x += this.speed;
      this.node.x > 800 && (this.code = 2);
    } else {
      this.node.x -= this.speed;
      this.node.x < -800 && (this.code = 1);
    }
  };
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_UI_MoveYun;